package com.xie.dao;

import com.xie.domain.Student;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author 本间芽衣子
 * @author As long as you are on the road, there is no place you can’t reach。
 * @program: ssm
 * @date 2021年04月19日 17:05
 */
public interface StudentDao {

      @Select("select * from student where username=#{username} and password=#{password}")
      Student findStudent(@Param("username") String username, @Param("password") String password);
      @Select("select * from student where id=#{id}")
      Student getStudent(int id);


}
